package com.example.Coupons.service.impl;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.Coupons.entity.Coupon;
import com.example.entity.OrderMessage;
import com.example.entity.lordOrder;

import java.math.BigDecimal;
import java.util.List;

public interface CouponService extends IService<Coupon> {
    List<Coupon> serviceList(Coupon coupon);

    /**
     * 获取当前商品集合的可用优惠券
     */
    List<Coupon> getCouponList(List<OrderMessage> orderMessages) throws Exception;

    /**
     * 处理优惠券信息
     */
    BigDecimal dealCoupon(lordOrder lordOrder);
}
